/**
 * 功能:TK_ANNOUNCEMENT Service类
 * 开发人员:chengd
 * 创建时间:2012-05-17 16:02:13
 */
package com.towker.frame.service.complex;

import org.springframework.stereotype.Service;

import com.sun.org.apache.xml.internal.security.keys.content.RetrievalMethod;
import com.towker.core.db.EntityDao;
import com.towker.core.db.BaseService;
import com.towker.frame.model.complex.Announcement;
import com.towker.frame.dao.complex.AnnouncementDao;

@Service
public class AnnouncementService extends BaseService<Announcement, java.lang.Long>
{
	private AnnouncementDao dao;
	
	public void setAnnouncementDao(AnnouncementDao dao)
	{
		this.dao = dao;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao()
	{
		return this.dao;
	}
	
	/**
	 * 查询最新公告
	 * @return
	 */
	public Announcement getNewAnnouncement(){
		return dao.getNewAnnouncement();
	}
}
